const App = getApp()
//改地址的方法：你自己找到自己的地方经纬，然后复制进来
Page({
data: {
latitude2: 22.817002,
longitude2: 113.366543,
map2: [{
  latitude: 22.817002,
  longitude: 113.366543,
  title: '地址：XXXX' 
}]
},
showModal(message) {
   App.WxService.showModal({
    	title: '友情提示',
    	content: message,
    	showCancel: !1,
   });
},
onLoad(option) {
	if (option){
      this.setData({
         globalOption: option
      })
    }
},
onShow(){
     this.getMap2();
},
navigateTo(e) {
    App.navigateTo(e.currentTarget.dataset.url,e.currentTarget.dataset);
},
getMap2(){
   var height = '200px';
   if(height.indexOf("%")>0){
   		var str=height.replace("%","");
	    str= str/100;
	    App.WxService.getSystemInfo().then(data => {
	        this.setData({
	            mapHeight2: data.windowHeight*str+"px", 
	        })
	   })
   }else{
   		this.setData({
	        mapHeight2: height, 
	    })
   }
}

})
